{include file="header.html"}
<div id="rightTop">
  <p>{$lang.storecomment}</p>
  <ul class="subnav">
    <li><span>{$lang.manage}</span></li>
  </ul>
</div>
<div class="mrightTop">
  <div class="fontl">
    <form method="get">
      <div class="left">
          <input type="hidden" name="app" value="storecomment" />
          <input type="hidden" name="act" value="index" />
          {$lang.store_name}:
          <input class="queryInput" type="text" name="store_name" value="{$smarty.get.store_name|escape}" />
          {$lang.user_name}:
          <input class="queryInput" type="text" name="user_name" value="{$smarty.get.user_name|escape}" />
          {$lang.content}:
          <input class="queryInput" type="text" name="content" value="{$smarty.get.content|escape}" />
          <input type="submit" class="formbtn" value="{$lang.query}" />
      </div>
      <!--{if $filtered}-->
      <a class="left formbtn1" href="index.php?app=storecomment">{$lang.cancel_query}</a>
      <!--{/if}-->
    </form>
  </div>
  <div class="fontr">{include file=page.top.html}</div>
  <div class="clear:both;"></div>
</div>
<div class="tdare">
  <table width="100%" cellspacing="0" class="dataTable">
    <!--{if $comments}-->
    <tr class="tatr1">
      <td width="20" class="firstCell"><input type="checkbox" class="checkall" /></td>
      <td>{$lang.store_name}</td>
      <td>{$lang.user_name}</td>
      <td>{$lang.star}</td>
      <td>{$lang.content}</td>
      <td>{$lang.add_time}</td>
      <td>{$lang.if_show}</td>
      <td class="handler" style="width: 250px">{$lang.handler}</td>
    </tr>
    <!--{/if}-->
    <!--{foreach from=$comments item=comment}-->
    <tr class="tatr2">
      <td class="firstCell"><input type="checkbox" class="checkitem" value="{$comment.comment_id}" /></td>
      <td>{$comment.store_name|escape}</td>
      <td>{$comment.user_name}</td>
      <td>{$comment.star}</td>
      <td>{$comment.content|truncate:20}</td>
      <td>{$comment.add_time|date:complete}</td>
      <td><!--{if $comment.if_show}-->{$lang.yes}<!--{else}-->{$lang.no}<!--{/if}--></td>
      <td class="handler" class="table-center">
      <a href="index.php?app=storecomment&amp;act=view&amp;id={$comment.comment_id}">{$lang.view}</a>
      </td>
    </tr>
    <!--{foreachelse}-->
    <tr class="no_data">
      <td colspan="10">{$lang.no_data}</td>
    </tr>
    <!--{/foreach}-->
  </table>
  <!--{if $comment}-->
  <div id="dataFuncs">
    <div id="batchAction" class="left paddingT15"> &nbsp;&nbsp;
      <input class="formbtn batchButton" type="button" value="{$lang.if_show}" name="id" uri="index.php?app=storecomment&act=show" presubmit="confirm('{$lang.show_confirm}');" /> &nbsp;&nbsp;
      <input class="formbtn batchButton" type="button" value="{$lang.if_hide}" name="id" uri="index.php?app=storecomment&act=hide" presubmit="confirm('{$lang.hide_confirm}');" /> &nbsp;&nbsp;
      <input class="formbtn batchButton" type="button" value="{$lang.drop}" name="id" uri="index.php?app=storecomment&act=drop" presubmit="confirm('{$lang.drop_confirm}');" />
    </div>
    <div class="pageLinks">{include file=page.bottom.html}</div>
    <div class="clear:both;"></div>
  </div>
  <div class="clear"></div>
  <!--{/if}-->
</div>
{include file="footer.html"} 